set(GLEW_SOURCE
	./src/glew.c
	./include/GL/glew.h
)

set(GLEW_HEADERS
)
add_definitions(
	-DTW_STATIC
	-DTW_NO_LIB_PRAGMA
	-DTW_NO_DIRECT3D
	-DGLEW_NO_GLU 
	-DGLEW_STATIC
	-D_CRT_SECURE_NO_WARNINGS
)
include_directories(./include)

add_library( glew STATIC
	${GLEW_SOURCE}
	${GLEW_INCLUDE}
)

target_link_libraries(glew
	${OPENGL_LIBRARY}
	${EXTRA_LIBS}
)

SET(LIBRARY_OUTPUT_PATH  ${PROJECT_BINARY_DIR}/)